package com.goktech.service;

import com.goktech.entity.Book;
import com.goktech.entity.User;
import com.goktech.entity.borrow;

import java.util.List;
import java.util.Map;

public interface BorrowService {

    public int insertBorrow(borrow b);

    public int deleteBorrow(borrow b);

    public int updateBorrow(borrow b);

    public List<Map<String,Object>> findByUserId(User u,int begin,int end);

    public List<Map<String,Object>> findByBookId(Book b);

    public List<Map<String,Object>>findByAll(int begin,int end);

    public List<Map<String,Object>>findByLikeZhanghao(User u);

    public List<Map<String,Object>>findByLikeUserName(User u);

    public Map<String, Object> findByBorrid(borrow b);

    public borrow findByBorrow(borrow b);

    public int updateBorrow1(borrow b);

    public List<borrow> findIsReturn(User user);
}
